package cn.itsource.user.service;

import cn.itsource.basic.exception.CustomException;
import cn.itsource.basic.service.IBaseService;
import cn.itsource.user.domain.User;

public interface IUserService extends IBaseService<User> {

    /**
     * 校验手机号码是否被注册
     * @param phone 手机号码
     * @throws CustomException  如果传递参数为空或者手机号码被注册，则抛出此异常
     */
    void checkPhone(String phone) throws CustomException;

    /**
     * 根据登录信息id获取user对象
     * @param logininfoid
     * @return
     */
    User loadByLogininfoid(Long logininfoid);
}
